﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Meraz.Core.Model;

namespace Meraz.Web.Models.Facebook
{
    public class FacebookTopicModel
    {
        public FacebookTopic Topic { get; set; }
        public FacebookTopicPost Post { get { return Topic.Posts[0]; } }
        public bool HasPost { get { return Topic.Posts.Count > 0; } }
        public bool HasLinks { get { return Topic.Posts.Count > 0 && Post.HasLinks; } }
        public IEnumerable<string> Broadcast { get { return new string[] { "broadcast", "commentary", "both", "none" }; } }
        public IEnumerable<string> Citation { get { return new string[] { "own comments", "citation", "both", "none" }; } }
        public IEnumerable<string> Old { get { return new string[] { "na", "week", "month", "year", "older"}; } }
        public IEnumerable<string> Level1 { get { return new string[] { "informational", "interperative", "both", "none" }; } }
        public IEnumerable<string> Level2 { get { return new string[] { "substantive", "effective", "both", "none" }; } }
    }
}
